<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">

<xi:include href="master.html" />

<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
    <title>Your Profile</title>
    <link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/static/css/style.css')}" />
</head>

<body>
  <py:if test="defined('diver')">
   		<form action="${tg.url('/profile/save')}" method="post">
   			<table>
   			<tr><td>
   			Firstname:</td><td> <input  type="text" name="firstname" value="${diver.firstname}"/></td>
   			</tr><tr><td>
   			middlename:</td><td> <input  type="text" name="middlename" value="${diver.middlename}"/></td>
   			</tr><tr><td>
   			lastname:</td><td> <input  type="text" name="lastname" value="${diver.lastname}"/></td>
   			</tr><tr><td>
   			title: </td><td><select name="title"><option value="mr">Mr.</option> <option value="mrs">Mrs.</option><option value="ms">Ms</option></select></td>
   			</tr><tr><td>
   			sex: </td><td><select name="sex"><option value="0">Male</option> <option value="1">Female</option></select></td>
   			</tr><tr><td>
   			birthdate: </td><td><input type="text" name="birthdate" value="${diver.birthdate}"/></td>
   			</tr><tr><td>
   			passport:</td><td> <input  type="text" name="passport" value="${diver.passport}"/></td>
   			</tr>
   			</table>
    <input type="submit" value="Save"/>
   		</form>
  </py:if>
</body>
</html>
